package cate.game.res.lubiitem.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBLubiItem;
import easy.java.dev.note.NoteField;

public class LubiItemUseReq implements MsgInput {
    @NoteField("道具uid")
    public String uid;
    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getRes().lubiItem.use(uid);
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBLubiItem.USE_REQ;
    }
}
